package com.glink.manage.dto.barriergate;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * Created by IntelliJ IDEA.
 * 设备登录
 * @Author : qiushaoshan
 * @create 2025/2/8 14:40
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DeviceLoginDTO implements Serializable {

    private static final long serialVersionUID = -2702308972565536659L;

    @ApiModelProperty(name = "dev_sno", notes = "设备号（设备MAC地址）")
    private String dev_sno;

    @ApiModelProperty(name = "sign_type", notes = "签名类型（固定为dev_sign）")
    private String sign_type;

    @ApiModelProperty(name = "register_no", notes = "设备注册号（暂无意义")
    private String register_no;

    @ApiModelProperty(name = "type", notes = "设备类型：1门禁机")
    private int type;

    @ApiModelProperty(name = "name", notes = "设备名称")
    private String name;

    @ApiModelProperty(name = "throughType", notes = "出入口, 1:出 2:入")
    private String throughType;

    @ApiModelProperty(name = "threshold", notes = "识别阈值[0.0-100.0]")
    private float threshold;

    @ApiModelProperty(name = "detectAlive", notes = "检测活体，close：不开启活体检测，IRAlive：IRAlive模式")
    private String detectAlive;

    @ApiModelProperty(name = "openIRWindow", notes = "是否开启IR小窗口")
    private boolean openIRWindow;

    @ApiModelProperty(name = "retryInterval", notes = "人脸识别去重时间， 单位：秒")
    private String retryInterval;

    @ApiModelProperty(name = "isFirst", notes = "是否首次登录。如果在中途切换其它平台账号，再次登录此参数为true")
    private boolean isFirst;
}
